#makefile for windows 
CFLAGS=-Wall -ID:\pcre\include
LFLAGS=-lpcre -lpcreposix -LD:\pcre\lib

SOURCES=a.c
OBJECTS=$(SOURCES:.c=.o)

all: run.exe

run.exe: $(OBJECTS)
	gcc -o $@ $^ $(LFLAGS)

$(OBJECTS): %.o: %.c
	gcc -c $< -o $@ $(CFLAGS)
	
clean:
	rm -f $(OBJECTS) run.exe